import { IsBoolean, IsInt, IsOptional, Max, Min } from "class-validator";

export default class CreateDto{
    @Max(100)
    @Min(1)
    @IsInt()
    count: number;

    @Min(1)
    @IsInt()
    deviceTypeId: number;

    @Min(0)
    @IsInt()
    @IsOptional()
    merchantId: number;

    @IsBoolean()
    @IsOptional()
    enable: boolean;

    @IsBoolean()
    @IsOptional()
    toAli: boolean;
}